<!DOCTYPE html>
<#include "/ftl/header.ftl">
<html>
<head>
    <meta charset="UTF-8">
</head>
<#include "/ftl/menu.ftl">

<script type="text/javascript">
    $(document).ready(function(){
        $("#btnsub").on("click",function(){
            $("#formData").submit();
        });
    });
    function back() {
        window.history.back(-1); //返回上一页
    }

</script>
<body>
<div class="container">

    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb">
                <li><a href="../product/list">内容管理</a></li>
                <li>图片新增</li>
            </ol>
        </div>
    </div>

    <form  method="post"  enctype="multipart/form-data" id="formData">
        <div class="content controls npt col-sm-offset-2 text-center">

            <div class="col-md-9">

                <div class="block">

                    <div class="content controls">
                        <input type="hidden" class="form-control" name="articleId"value="${articleId!}"/>
                        <div class="form-row">
                            <div class="col-md-3">图片排序</div>
                            <div class="col-md-9"><input type="text" class="form-control" id="sort" name="sort"></input></div>
                        </div>

                        <div class="form-row">
                            <div class="col-md-3">图片<span style="color: red">*</span></div>
                            <div class="col-md-9"><input type="file"  multiple="multiple" class="form-control" id="file" name="file" ></input></div>
                        </div>


                        <div class="form-row">
                            <div class="col-md-12">
                                <button class="btn btn-default btn-clean"  id="btnsub" type="button">提交</button>
                                <button class="btn btn-default btn-clean"   onclick="back()" type="button">返回</button>

                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
</html>